package com.hou.common.constant;

/**
 * @author Hou
 */
public class ProductConstant {


    public enum  AttrEnum{
        /**
         * 基本属性
         */
        ATTR_TYPE_BASE(1,"基本属性"),
        /**
         * 销售属性
         */
        ATTR_TYPE_SALE(0,"销售属性");

        private final int code;
        private final String msg;

        AttrEnum(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum  StatusEnum{
        /**
         * 商品新建
         */
        STATUS_TYPE_NEW(0,"新建"),
        /**
         * 商品上架
         */
        STATUS_TYPE_ONSELL(1,"上架"),
        /**
         * 商品下架
         */
        STATUS_TYPE_OFF(2,"下架");

        private final int code;
        private final String msg;

        StatusEnum(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
